package com.itheima.exam.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
/**
 * 实体类 Enitity  =>  和数据库表的模型对应
 * 对应student
 */
public class Student {
    private Integer sid;
    private String sname;
    private int gender;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private Integer cid;
}
